package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.mapper.TbCollectionMapper;
import com.zhentao.pojo.TbCollection;
import com.zhentao.service.TbCollectionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【tb_collection(收藏表)】的数据库操作Service实现
* @createDate 2025-09-28 14:04:49
*/
@Service
public class TbCollectionServiceImpl extends ServiceImpl<TbCollectionMapper, TbCollection>
    implements TbCollectionService{


    @Override
    public List<TbCollection> getByStudentId(Integer studentId) {
        QueryWrapper<TbCollection> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("student_id",studentId);
        return list(queryWrapper);
    }
}




